package com.smartj.autowire;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@EnableAutoConfiguration
@Configuration
public class Configure {

    @Bean(value = "address")
    Address getAddress() {
        return new Address();
    }

    @Bean
    User getUser() {
        return new User();
    }
}
